<?php
/**
+--------------------------------------------------------------
 * User: maqun
+--------------------------------------------------------------
 * Date: 2015/11/24
+--------------------------------------------------------------
 * Time: 21:44
+--------------------------------------------------------------
 * 新闻表模型
+--------------------------------------------------------------
 */
class NewsModel extends BaseModel{
    protected $tableName = 'news'; //数据库表名

    public  function getInfo(){
        $res = $this->where(1)->select();
        return $res;
    }
}